<template>
    <div class="fkzm">

        <img src="http://common-1253410441.file.myqcloud.com/activityimg/20171222163605.jpg" alt="">
        <img @click="nativetonative('6014')"
             src="http://common-1253410441.file.myqcloud.com/activityimg/20171222163606.png" alt="">
        <img
                src="http://common-1253410441.file.myqcloud.com/activityimg/20171222163607.png" alt="">
        <img @click="jumpfn"
             src="http://common-1253410441.file.myqcloud.com/activityimg/20171222163608.png" alt="">
        <img
                src="http://common-1253410441.file.myqcloud.com/activityimg/20171222163609.png" alt="">
    </div>

</template>

<script>
    import {Marquee, MarqueeItem, Toast} from 'vux';
    import {getMytoken, getLogintoken} from '../../services/common';
    import {nativetonative, h5tonative} from '../../utils/otherfn';
    import {namesource, jumptype} from '../../utils/config/common';
    import axios from 'axios';
    export default {
        components: {
            Marquee,
            MarqueeItem,
            Toast
        },
        data() {
            return {};
        },
        created() {
        },
        computed: {},
        methods: {
            /**
             * 获取一些初始化信息
             */
            nativetonative,
            async jumpfn(){
                const {token}=await getMytoken(true);
                if(!token) {
                    getLogintoken(function (value) {
                        console.log('vvv', value);
                        if(value) {
                            location.reload();
                        }
                    }).then(({token})=> {
                    });
                    return;
                }
                h5tonative('充值', `${location.origin}/#/security/recharge`);
            }
        }
    }
</script>
<style scoped lang="less" rel="stylesheet/less">
    .fkzm {
        img {
            display: block;
            width: 100%;
        }
    }

</style>